const rules = {
  username: [
    { required: true, message: '请输入用户名', trigger: 'blur' },
    { min: 1, max: 8, message: '长度大于0小于5', trigger: ['change', 'blur'] }
  ],
  password: [
    { required: true, message: '请输入密码', trigger: 'blur' },
    { min: 6, message: '密码必须大于6个字符', trigger: ['change', 'blur'] }
  ]
}

export default rules
